﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:common="clr-namespace:Indigo.Quibbler.Common"
    xmlns:System_Windows_Documents="clr-namespace:System.Windows.Documents;assembly=PresentationUI" x:Class="Indigo.Quibbler.Controls.ArticleGalleryNode"
    Width="160" Height="120">
	<Border x:Name="borderArticle" Background="#BF3B3B3B" CornerRadius="5">
		<Border x:Name="borderInner" Margin="0" BorderThickness="0" CornerRadius="5" BorderBrush="#FF616161" Background="White">
			<!--<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="Black"/>
			<GradientStop Color="#FF011126" Offset="1"/>
			<GradientStop Color="Black" Offset="0.58"/>
		</LinearGradientBrush>
			</Border.Background>-->
	        <Grid x:Name="gridLayout" Margin="5">
	            <Grid.RowDefinitions>
	                <RowDefinition Height="Auto" MaxHeight="40"/>
	                <RowDefinition Height="*"/>
	            </Grid.RowDefinitions>
	            <Grid.ColumnDefinitions>
	                <ColumnDefinition Width="2*"/>
	                <ColumnDefinition Width="3*"/>
	            </Grid.ColumnDefinitions>
	            <TextBlock x:Name="txtHeadline"  Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Text="{Binding Headline}" FontSize="16" FontFamily="Georgia" TextWrapping="Wrap" TextTrimming="WordEllipsis" MaxHeight="100" Foreground="#FF216B96" ScrollViewer.VerticalScrollBarVisibility="Disabled" TextAlignment="Left"/>
            	<TextBlock x:Name="txtSubHeadline" Grid.Row="1"  Grid.Column="0" Text="{Binding SubHeadline}" TextWrapping="Wrap" TextTrimming="WordEllipsis" FontSize="12" FontFamily="Georgia" Margin="0,5,5,0" Foreground="#FF535353" HorizontalAlignment="Center" VerticalAlignment="Center" ScrollViewer.VerticalScrollBarVisibility="Disabled" TextAlignment="Left"/>
            	<common:AsyncImageControl x:Name="imgArticle"  Grid.Row="1" Grid.Column="1" Source="{Binding ImageUrl}" Margin="5,0,0,0" MaxHeight="63" MaxWidth="84" ScrollViewer.VerticalScrollBarVisibility="Disabled" HorizontalAlignment="Center" VerticalAlignment="Center"/>
	        </Grid>
		</Border>
    </Border>
</UserControl>
